package com.feiyu.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.feiyu.order.dao.LeaseOrderDao;
import com.feiyu.order.entity.LeaseOrderEntity;
import com.feiyu.order.service.OrderInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: Doate
 * @Date: Created in 2021/4/16 1:43
 * @Description:
 */
@Service
public class OrderInfoServiceImpl implements OrderInfoService {

    @Resource
    LeaseOrderDao leaseOrderDao;

    @Override
    public LeaseOrderEntity getOrderInfo(String orderId) {

        QueryWrapper<LeaseOrderEntity> wrapper = new QueryWrapper<>();
        wrapper.eq("order_id",orderId);

        return leaseOrderDao.selectOne(wrapper);
    }
}
